local extension = Package:new("policy")
extension.extensionName = "new_heg_diy_my"
extension.game_modes_whitelist = { 'mul_heg_mode', 'ex_heg_mode', "zhonger_heg_mode" }

extension:loadSkillSkelsByPath("./packages/new_heg_diy_my/pkg/policy/skills")

Fk:loadTranslationTable{
  ["policy"] = "日月交辉·策",
}

local zhaoang = General(extension, "wk_heg__zhaoang", "wei", 4)
zhaoang:addSkills{"wk_heg__xieyu"}
Fk:loadTranslationTable{
  ["wk_heg__zhaoang"] = "赵昂",
  ["#wk_heg__zhaoang"] = "剜心筑城",
  ["designer:wk_heg__zhaoang"] = "24&教父",

  ["~wk_heg__zhaoang"] = "援军为何迟迟不至？",
}

local jiangji = General:new(extension, "wk_heg__jiangji", "wei", 3)
jiangji:addSkills{ "wk_heg__jilun", "wk_heg__shiju" }
jiangji:addCompanions("st_heg__simayi")
jiangji:addRelatedSkills{"alliance1&", "alliance2&", "alliance3&"}
Fk:loadTranslationTable{
  ["wk_heg__jiangji"] = "蒋济", 
  ["#wk_heg__jiangji"] = "江淮骨鲠",
  ["designer:wk_heg__jiangji"] = "祭祀&教父",

  ["~wk_heg__jiangji"] = "洛水之誓，言犹在耳……咳咳咳",
}

local manchong = General:new(extension, "wk_heg__manchong", "wei", 4)
manchong:addSkills{ "wk_heg__fuyu", "wk_heg__kaoxun", "wk_heg__lishi"}
manchong.mainMaxHpAdjustedValue = -1
Fk:loadTranslationTable{
  ["wk_heg__manchong"] = "满宠", 
  ["#wk_heg__manchong"] = "政法兵谋",
  ["designer:wk_heg__manchong"] = "小曹神",
  
  ["~wk_heg__manchong"] = "援军为何迟迟未到……",
}

local liuyin = General(extension, "wk_heg__liuyin", "shu", 4)
liuyin:addSkills{ "wk_heg__lueshou"}
Fk:loadTranslationTable{
  ["wk_heg__liuyin"] = "柳隐",
  ["#wk_heg__liuyin"] = "固城难开",
  ["designer:wk_heg__liuyin"] = "24",

  ["~wk_heg__liuyin"] = "汉臣守土有责，无奈汉主先降！",
}

General(extension, "wk_heg__huaman", "shu", 4, 4, General.Female):addSkills{"wk_heg__xiangzhen", "wk_heg__mansi"}
Fk:loadTranslationTable{
  ["wk_heg__huaman"] = "花鬘",
  ["#wk_heg__huaman"] = "芳踪载馨",
  ["designer:wk_heg__huaman"] = "白兮",

  ["~wk_heg__huaman"] = "南蛮之地的花，还在开吗……",
}

local zhugezhan = General(extension, "wk_heg__zhugezhan", "shu", 4, 4, General.Male)
zhugezhan:addSkills{"wk_heg__zuilun", "wk_heg__longfei", "wk_heg__kuangguo"}
zhugezhan.deputyMaxHpAdjustedValue = -1
Fk:loadTranslationTable{
  ["wk_heg__zhugezhan"] = "诸葛瞻",
  ["designer:wk_heg__zhugezhan"] = "方步乱&教父",
  ["#wk_heg__zhugezhan"] = "困渊腾龙",

  ["~wk_heg__zhugezhan"] = "临难而死义，无愧先父…",
}

General(extension, "wk_heg__heqi", "wu", 4):addSkills{"wk_heg__qizhou"}
Fk:loadTranslationTable{
  ["wk_heg__heqi"] = "贺齐",
  ["#wk_heg__heqi"] = "马踏群峦",
  ["designer:wk_heg__heqi"] = "24",

  ["~wk_heg__heqi"] = "别拿走……我的装备！",
}

General(extension, "wk_heg__xuezong", "wu", 3):addSkills{"wk_heg__dingjian", "wk_heg__jiexun"}
Fk:loadTranslationTable{
  ["wk_heg__xuezong"] = "薛综",
  ["designer:wk_heg__xuezong"] = "教父",
  ["#wk_heg__xuezong"] = "彬彬之玉",

  ["~wk_heg__xuezong"] = "尔等竟做如此有辱斯文之事。",
}

General(extension, "wk_heg__sunliang", "wu", 3, 3):addSkills{"wk_heg__chitao", "wk_heg__chezheng"}
Fk:loadTranslationTable{
  ["wk_heg__sunliang"] = "孙亮",
  ["#wk_heg__sunliang"] = "盘龙陷沼",
  ["designer:wk_heg__sunliang"] = "小曹神",

  ["~wk_heg__sunliang"] = "今日欲诛逆臣而不得，方知机事不密则害成…",
}

local mengyou = General(extension, "wk_heg__mengyou", "qun", 4)
mengyou:addSkills{"wk_heg__mingjiao"}
Fk:loadTranslationTable{
  ["wk_heg__mengyou"] = "孟优",
  ["#wk_heg__mengyou"] = "蛮杰陷谋",
  ["designer:wk_heg__mengyou"] = "猪&静谦",

  ["~wk_heg__mengyou"] = "大哥，诸葛亮又打来了。",
}

local wangyun = General(extension, "wk_heg__wangyun", "qun", 4)
wangyun:addSkills{"wk_heg__jingong", "wk_heg__mingjie", "wk_heg__lianji"}
wangyun.mainMaxHpAdjustedValue = -1
Fk:loadTranslationTable{
  ["wk_heg__wangyun"] = "王允",
  ["designer:wk_heg__wangyun"] = "教父&静谦&猪",
  ["#wk_heg__wangyun"] = "矜贤之国纪",

  ["~wk_heg__wangyun"] = "获罪于君，当伏大辟以谢天下…",
}

local liru = General(extension, "wk_heg__liru", "qun", 3)
liru:addSkills{"wk_heg__fencheng", "wk_heg__juece"}
liru:addCompanions("ld__dongzhuo")
Fk:loadTranslationTable{
  ["wk_heg__liru"] = "李儒",
  ["#wk_heg__liru"] = "魔仕",
  ["designer:wk_heg__liru"] = "猪",

  ["~wk_heg__liru"] = "如遇明主，大业必成……",
}

--战策卡
local drum_together = fk.CreateCard{
  name = "heg_drum_together",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local backarm_stop = fk.CreateCard{
  name = "heg_backarm_stop",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local other_replace = fk.CreateCard{
  name = "heg_other_replace",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local reverse_attack = fk.CreateCard{
  name = "heg_reverse_attack",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local trueaim_another = fk.CreateCard{
  name = "heg_trueaim_another",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local buy_arm = fk.CreateCard{
  name = "heg_buy_arm",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local move_insecret = fk.CreateCard{
  name = "heg_move_insecret",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local getlive_indeath = fk.CreateCard{
  name = "heg_getlive_indeath",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local attack_infire = fk.CreateCard{
  name = "heg_attack_infire",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local replace_something = fk.CreateCard{
  name = "heg_replace_something",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local move_people = fk.CreateCard{
  name = "heg_move_people",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

local getchance_insmall = fk.CreateCard{
  name = "heg_getchance_insmall",
  type = Card.TypeBasic,
  skill = "default_card_skill",
}

extension:loadCardSkels{
  drum_together,
  backarm_stop,
  other_replace,
  reverse_attack,
  trueaim_another,
  buy_arm,
  move_insecret,
  getlive_indeath,
  attack_infire,
  replace_something,
  move_people,
  getchance_insmall,
}

Fk:loadTranslationTable{
  ["heg_drum_together"] = "金鼓齐鸣",
  ["heg_backarm_stop"] = "偃甲息兵",
  ["heg_other_replace"] = "李代桃僵",
  ["heg_reverse_attack"] = "反守为攻",
  ["heg_trueaim_another"] = "声东击西",
  ["heg_buy_arm"] = "招兵买马",
  ["heg_move_insecret"] = "暗度陈仓",
  ["heg_getlive_indeath"] = "绝处逢生",
  ["heg_attack_infire"] = "趁火打劫",
  ["heg_replace_something"] = "偷梁换柱",
  ["heg_move_people"] = "调兵遣将",
  ["heg_getchance_insmall"] = "见缝插针",
  [":heg_drum_together"] = "当你造成伤害后，与你势力相同的角色各摸一张牌。",
  [":heg_backarm_stop"] = "其他角色使用牌指定你为目标后，你与其依次收回装备区内所有牌且本回合不能装备牌。",
  [":heg_other_replace"] = "其他角色受到不小于其体力值的伤害时，防止之，然后你摸一张牌且伤害来源对你造成等量伤害。",
  [":heg_reverse_attack"] = "当你响应其他角色使用的牌结算后，视为对其使用一张 【杀】。",
  [":heg_trueaim_another"] = "当你使用牌选择唯一目标后，改为指定一名其他角色。",
  [":heg_buy_arm"] = "准备阶段，弃置一张手牌，检索并获得一张装备牌。",
  [":heg_move_insecret"] = "结束阶段，对一名本回合使用过【闪】或【无懈可击】的角色造成1点伤害。",
  [":heg_getlive_indeath"] = "进入濒死状态时，弃置所有手牌，回复1点体力。",
  [":heg_attack_infire"] = "其他角色进入濒死状态时，获得其区域内各一张牌。",
  [":heg_replace_something"] = "距离1以内其他角色的出牌阶段开始时，观看其手牌并用一张手牌交换其中一张。",
  [":heg_move_people"] = "结束阶段，令一名与你势力相同的角色与你交换副将。",
  [":heg_getchance_insmall"] = "其他角色使用牌指定唯一目标时，弃置一张牌，成为此牌的额外目标。",
}

return extension